<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:90:"D:\StudySoft\phpstudy_pro\WWW\football\public/../application/home\view\login\register.html";i:1665756300;}*/ ?>
<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<title>个人注册</title>

    <link rel="stylesheet" type="text/css" href="/static/home/css/all.css" />
    <link rel="stylesheet" type="text/css" href="/static/home/css/pages-register.css" />
    
	<script type="text/javascript" src="/static/home/js/all.js"></script>
	<script type="text/javascript" src="/static/home/js/pages/register.js"></script>
</head>

<body>
	<div class="register py-container ">
		<!--head-->
		<div class="logoArea">
			<a href="/home/index/index" class="logo"></a>
		</div>
		<!--register-->
		<div class="registerArea">
			<h3>注册个人用户<span class="go">我有账号，去<a href="login.html" target="_blank">登陆</a></span></h3>
			<div class="info">
				<form action="<?php echo url('phone'); ?>" method="post" id="reg_form" class="sui-form form-horizontal">
<!--					<div class="control-group">-->
<!--						<label class="control-label">手机号：</label>-->
<!--						<div class="controls">-->
<!--							<input type="text" id="phone" name="phone" placeholder="请输入你的手机号" class="input-xfat input-xlarge">-->
<!--							<span class="error"></span>-->
<!--						</div>-->
<!--					</div>-->
<!--					<div class="control-group">-->
<!--						<label for="code" class="control-label">验证码：</label>-->
<!--						<div class="controls">-->
<!--							<input type="text" id="code" name="code" placeholder="验证码" class="input-xfat input-xlarge" style="width:120px">-->
<!--							<button type="button" class="btn-xlarge" id="dyMobileButton">发送验证码</button>-->
<!--							<span class="error"></span>-->
<!--						</div>-->
<!--					</div>-->
<!--					<div class="control-group">-->
<!--						<label class="control-label">邮箱：</label>-->
<!--						<div class="controls">-->
<!--							<input type="text" id="email" name="email" placeholder="请输入你的邮箱" class="input-xfat input-xlarge">-->
<!--							<span class="error"></span>-->
<!--						</div>-->
<!--					</div>-->
<!--					<div class="control-group">-->
<!--						<label for="code" class="control-label">验证码：</label>-->
<!--						<div class="controls">-->
<!--							<input type="text" id="code_2" name="code_2" placeholder="验证码" class="input-xfat input-xlarge" style="width:120px">-->
<!--							<button type="button" class="btn-xlarge" id="dyMobileButton_2">发送验证码</button>-->
<!--							<span class="error"></span>-->
<!--						</div>-->
<!--					</div>-->
					<div class="control-group">
						<label for="password" class="control-label">注册邮箱：</label>
						<div class="controls">
							<input type="text" id="email" name="email" placeholder="请输入注册邮箱(登录账号)" class="input-xfat input-xlarge">
							<span class="error"></span>
						</div>
					</div>
					<div class="control-group">
						<label for="password" class="control-label">登录密码：</label>
						<div class="controls">
							<input type="password" id="password" name="password" placeholder="设置登录密码" class="input-xfat input-xlarge">
							<span class="error"></span>
						</div>
					</div>
					<div class="control-group">
						<label for="repassword" class="control-label">确认密码：</label>
						<div class="controls">
							<input type="password" id="repassword" name="repassword" placeholder="再次确认密码" class="input-xfat input-xlarge">
							<span class="error"></span>
						</div>
					</div>
					<div class="control-group">
						<label for="inputPassword" class="control-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
						<div class="controls">
							<input name="m1" id="inputPassword" type="checkbox" value="2" checked=""><span>同意协议并注册《品优购用户协议》</span>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label"></label>
						<div class="controls btn-reg">
							<a id="reg_btn" class="sui-btn btn-block btn-xlarge btn-danger reg-btn" href="javascript:;">完成注册</a>
						</div>
					</div>
				</form>
				<div class="clearfix"></div>
			</div>
		</div>
		<!--foot-->
		<div class="py-container copyright">
			<ul>
				<li>关于我们</li>
				<li>联系我们</li>
				<li>联系客服</li>
				<li>商家入驻</li>
				<li>营销中心</li>
				<li>手机品优购</li>
				<li>销售联盟</li>
				<li>品优购社区</li>
			</ul>
			<div class="address">地址：北京市昌平区建材城西路金燕龙办公楼一层 邮编：100096 电话：400-618-4000 传真：010-82935100</div>
			<div class="beian">京ICP备08001421号京公网安备110108007702
			</div>
		</div>
	</div>
</body>

</html>

<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
</script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
<script>

	$(function(){
		$("#reg_form").validate({
			rules: {
				password: {
					required: true,
					minlength: 5
				},
				repassword: {
					required: true,
					minlength: 5,
					equalTo: "#password"
				},
				email: {
					required: true,
					email: true
				}
			},
			messages: {
				password: {
					required: "请输入密码",
					minlength: "密码长度不能小于 5 个字符"
				},
				repassword: {
					required: "请输入密码",
					minlength: "密码长度不能小于 5 个字符",
					equalTo: "两次密码输入不一致"
				},
				email: "请输入一个正确的邮箱",
			}
		});

		//点击 注册  提交表单
		$('#reg_btn').click(function(){
			//格式检测 略
			//提交表单
			$('form').submit();
		});

		//发送验证码
		// $('#dyMobileButton').click(function(){
		// 	//获取手机号
		// 	var phone = $('#phone').val();
		// 	if(phone == ''){
		// 		//手机号不能为空
		// 		$('#phone').next().html('手机号不能为空');
		// 		return;
		// 	}else if(!/^1[3-9]\d{9}$/.test(phone)){
		// 		//手机号格式不正确
		// 		$('#phone').next().html('手机号格式不正确');
		// 		return;
		// 	}else{
		// 		$('#phone').next().html('');
		// 	}
		// 	var time = 60;
		// 	//设置定时器  倒计时效果
		// 	var timer = setInterval(function(){
		// 		time--;
		// 		if(time > 0){
		// 			//正在倒计时
		// 			$('#dyMobileButton').html('重新发送：' + time + '秒');
		// 			$('#dyMobileButton').prop('disabled', true);
		// 		}else{
		// 			//停止倒计时
		// 			$('#dyMobileButton').html('发送验证码');
		// 			$('#dyMobileButton').prop('disabled', false);
		// 			clearInterval(timer);
		// 		}
		// 	}, 1000);
		// 	//发送ajax请求
		// 	$.ajax({
		// 		"url":"<?php echo url('home/login/sendcode'); ?>",
		// 		"type":"post",
		// 		"data":"phone=" + phone,
		// 		"dataType":"json",
		// 		"success":function(res){
		// 			//提示
		// 			alert(res.msg);return;
		// 		}
		// 	});
		// });

	});
</script>